﻿<phone:PhoneApplicationPage xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"  
    x:Class="MatchResults.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="728" 
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="PanoramaBackground.png"/>
        </Grid.Background>
        <!--Panorama control-->
        <controls:Panorama Title="Maç Sonuçları" SelectionChanged="ChangeItemType">
            <!--<controls:Panorama.Background>
                <ImageBrush ImageSource="images/images1.jpg"    AlignmentX="Center" AlignmentY="Center" Opacity="0.4"/>
            </controls:Panorama.Background>-->

            <controls:PanoramaItem Header="Seçenekler">
                <!--Double line list with image placeholder and text wrapping-->
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition></RowDefinition>
                        <RowDefinition Height="75"></RowDefinition>
                    </Grid.RowDefinitions>
                <ListBox x:Name="SecondItem" Margin="0,0,-12,0" >
                    <ListBox.Items>
                        <ListBoxItem>
                            <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                                <!--Replace rectangle with image-->
                                <Image Height="100" Width="100"  Margin="12,0,9,0" Source="/MatchResults;component/images/ball.png" />
                                <StackPanel Width="311">
                                    <TextBlock  Text="Sonuçlar"  TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="MatchResultTap"/>
                                    <TextBlock  Text="Maç Sonuçları"  TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}" Tap="MatchResultTap"/>
                                </StackPanel>
                            </StackPanel>
                        </ListBoxItem>
                        <ListBoxItem>
                            <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                                <!--Replace rectangle with image-->
                                <Image Height="100" Width="100"  Margin="12,0,9,0" Source="/MatchResults;component/images/ball.png" />
                                <StackPanel Width="311">
                                    <TextBlock  Text="Programlar"  TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="MatchProgramsTap"/>
                                    <TextBlock  Text="Maç Programlar"  TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}" Tap="MatchProgramsTap"/>
                                </StackPanel>
                            </StackPanel>
                        </ListBoxItem>
                        <ListBoxItem>
                            <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                                <!--Replace rectangle with image-->
                                <Image Height="100" Width="100"  Margin="12,0,9,0" Source="/MatchResults;component/images/ball.png" />
                                <StackPanel Width="311">
                                    <TextBlock  Text="Canlı Sonuçlar"  TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="LiveMatchResultTap"/>
                                    <TextBlock  Text="Canlı Sonuçlar"  TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}" Tap="LiveMatchResultTap"/>
                                </StackPanel>
                            </StackPanel>
                        </ListBoxItem>
                    </ListBox.Items>
                </ListBox>
                <!--<my:AdControl Grid.Row="1" />-->
                </Grid>
            </controls:PanoramaItem>
        </controls:Panorama>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/icons1/appbar.questionmark.rest.png" Text="Hakkında" Click="About_Click"/>
            <shell:ApplicationBarIconButton IconUri="/icons2/appbar.favs.addto.rest.png" Text="Oy Kullan" Click="Review_Click"/>
            <!--<shell:ApplicationBarIconButton IconUri="/Images/appbar_button3.png" Text="Ayarlar" Click="Setting_Click"/>-->
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>